<?php

namespace App\Http\Controllers\Wx;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use App\Models\PlayerRecord;

class RecordController extends Controller
{

    //
    public function show(int $id)
    {
        return PlayerRecord::query()
                           ->with(['player', 'player.wechat'])
                           ->where('record_id', $id)
                           ->orderByDesc('score')
                           ->get();
    }
}
